package com.tz.spring.sysmanage.advice;

import org.aopalliance.intercept.MethodInterceptor;
import org.aopalliance.intercept.MethodInvocation;

/**
 * 环绕通知
 * @author Administrator
 *
 */
public class MyAroundAdvice implements MethodInterceptor {

	@Override
	public Object invoke(MethodInvocation invocation) throws Throwable {
		 System.out.println("这是环绕通知的前面执行部分 ,应该在方法执行之前打印");
		 Object result = invocation.proceed();
		 System.out.println("方法运行的结果="+result);
 		 System.out.println("这是环绕通知的后面执行部分 ,应该在方法执行之后打印");	 
 		 result= false;
 		 
		 return result ;
		 
	}
	
	 
	 
}
